<!--
 * @Descripttion: 文件说明
 * @version: 0.0.1
 * @Author: gaojiapeng
 * @Date: 2021-01-28 14:43:47
 * @LastEditors: gaojiapeng
 * @LastEditTime: 2021-03-13 20:43:34
-->
<template>
  <div id="app">
    <router-view />
  </div>
</template>
<script>
export default {
  created() {
    // if (this.$IfEquipment() === "Mobile") {
    //   this.openPage("Mo");
    // } else {
    //   this.openPage("Pc");
    // }
  },
  methods: {
    openPage(type) {
      let path = "";
      if (type === "Mo") {
        path = "/MoHome";
        document
          .getElementsByTagName("html")[0]
          .setAttribute("class", "html-bg-mo");
      } else if (type === "Pc") {
        path = "/PcHome";
        document
          .getElementsByTagName("html")[0]
          .setAttribute("class", "html-bg-pc");
      }
      this.$router.push({ path });
    }
  }
};
</script>
<style lang="scss" scoped>
#app {
  width: 100%;
  height: 100%;
}
</style>
